import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询便民便企信息申请全部
export const publicPeopleApplyList = data => {
    return $get('/risk/publicPeopleApply/list', data)
}

// 查询便民便企信息申请列表
export const publicPeopleApplyPage = data => {
    return $get('/risk/publicPeopleApply/page', data)
}

// 新增便民便企信息申请
export const publicPeopleApplyAdd = data => {
    return $post('/risk/publicPeopleApply/add', data)
}

// 查询便民便企信息申请详情
export const publicPeopleApplyDetail = id => {
    return $get('/risk/publicPeopleApply/detail/'+ id)
}

// 更新便民便企信息申请
export const publicPeopleApplyUpdate = data => {
    return $post('/risk/publicPeopleApply/update', data)
}

// 删除便民便企信息申请
export const publicPeopleApplyDelete = id => {
    return $post('/risk/publicPeopleApply/delete/'+ id)
}

// 导出便民便企信息申请
export const publicPeopleApplyExport = (data,fileName) => {
    return $download('/risk/publicPeopleApply/export',data, fileName)
}


// 便民便企信息统计
export const peopleApplyDateCountStatistics = data => {
  return $get('/risk/publicPeopleApply/peopleApplyDateCountStatistics', data)
}

// 便民便企信息统计导出
export const peopleApplyDateCountStatisticsExport = (data,fileName) => {
  return $download('/risk/publicPeopleApply/peopleApplyDateCountStatisticsExport',data, fileName)
}
